import request from '../utils/request'

// 注册账号
export const register = (data)=> {
  return request({
    method: 'POST',
    url: '/api/register',
    data
  })
}

// 登录账号
export const login = (data) => {
  return request({
    method: 'POST',
    url: '/api/login',
    data
  })
}
